<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" id="form" method="post" action="{:U('update')}">
                        	<input type="hidden" name="id" value="{$vo['id']}"/>
                        	<input type="hidden" name="p" value="{$p}"/>
                            <div class="space-4"></div>
                            
                             <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    订单号： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.order_no}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                          
							
							<div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    金额： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.money}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    购买人： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.nickname}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    会员等级： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.level}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    提交时间： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.t|date='Y-m-d H:i:s',###}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            
                            
                            <if condition="$vo['status'] eq 1 or $vo['status'] eq 2">
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    支付方式： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.pay_name}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 付款凭证： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    <notempty name="pz_arr">
                                    	<foreach name="pz_arr" item="pic">
                                    	<img src="{$pic}" width="340" height="480"/>&nbsp;&nbsp;
                                    	</foreach>	
                                    </notempty>

                                    </span>
                                </div>
                            </div>
							<div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    支付备注： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo.remark}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            </if>
                            <if condition="$vo['status'] neq 2">
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 是否支付 </label>
                                <div class="control-label no-padding-left col-sm-1">
                                    <label>
                                        <input name="status" id="status"
                                        <if condition="$vo.status eq 2">checked="checked"</if>
                                        value="2" class="ace ace-switch ace-switch-2" type="checkbox" />
                                        <span class="lbl"></span>
                                    </label>
                                </div>
                                <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle"></span>
										</span>
                            </div>
							<div class="space-4"></div>
                            <else/>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    支付状态： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	<if condition="$vo['status'] eq 0">待支付</if>
                                    	<if condition="$vo['status'] eq 1">已提交</if>
                                    	<if condition="$vo['status'] eq 2">已支付</if>
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <if condition="$vo['status'] neq 0">
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">
                                    支付时间： </label>
                                <div class="col-sm-9" style="padding-top: 6px;">
                                    <span class="middle">
                                    	{$vo['finish_t']|date='Y-m-d H:i:s',###}
                                    </span>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            </if>
                            </if>
                            
							
							<if condition="$vo['status'] neq 2">
                            <div class="col-md-offset-2 col-md-9">
                                <button class="btn btn-info submit" type="button">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>
                                &nbsp; &nbsp; &nbsp;
                             </if>
                                <button class="btn" type="button" onclick="history.back(-1);">
                                    <i class="icon-undo bigger-110"></i>
                                    取消
                                </button>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
        $(".btn-info.submit").click(function () {   
        	var st = "{$vo['status']}";
        	if(st != 2){
        		$("#form").submit();
        	}
        });
    });

</script>
</body>
</html>
